package com.ruoyi.wms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料现存量对象 wms_material_stock
 * 
 * @author chao
 * @date 2024-07-23
 */
public class WmsMaterialStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 物料ID */
    private Long materialId;

    public Long getMaterialId() {
        return materialId;
    }

    public void setMaterialId(Long materialId) {
        this.materialId = materialId;
    }

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String name;

    /** 规格/型号 */
    @Excel(name = "规格/型号")
    private String model;

    /** 现存量 */
    @Excel(name = "现存量")
    private Double stockNum;

    /** 单位 */
    @Excel(name = "单位")
    private String unitName;

    /** 备注 */
    @Excel(name = "备注")
    private String common;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }

    public void setStockNum(Double stockNum)
    {
        this.stockNum = stockNum;
    }

    public Double getStockNum()
    {
        return stockNum;
    }

    public void setUnitName(String unitName) 
    {
        this.unitName = unitName;
    }

    public String getUnitName() 
    {
        return unitName;
    }

    public void setCommon(String common) 
    {
        this.common = common;
    }

    public String getCommon() 
    {
        return common;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("model", getModel())
            .append("stockNum", getStockNum())
            .append("unitName", getUnitName())
            .append("common", getCommon())
                .append("materialId",getMaterialId())
            .toString();
    }
}
